<template>
  <div class="ne-container">
<!--    <ne-tabs :tabs="tabs" mode="button" style="margin-bottom: 14px" @change="tabChange"/>-->
    <bring-card
        v-for="item in dataSource"
        :key="item.indexCode"
        :row="item"
        hide-apply
        is-sign
        @success="search({itemType:'1',approvalStatus:'1'})"
    />
    <van-empty v-if="!dataSource.length" description="暂无数据"/>
  </div>
</template>

<script>
  import NeTabs from "../../components/NeTabs.vue";
  import BringCard from "./components/BringCard.vue";
  import LectureCard from "./components/LectureCard.vue";
  import pagingMixin from "../../mixins/pagingMixin";
  export default {
  name: 'wx_pages_djzh_culturePage',
    components: {LectureCard, NeTabs,BringCard},
    mixins:[pagingMixin],
    data(){
      return{
        restfulApi:'/tbMoralEducation/page',
        itemStatus:'0',
        educationList:[],
        tabs:[
          {
            name: '待开始',
            value:'0'
          },
          {
            name: '进行中',
            value:'1'
          },
          {
            name: '已结束',
            value:'2'
          }
        ]
      }
    },
    methods:{
      tabChange(index){
        this.itemStatus = this.tabs[index].value
        this.search({itemType:'1',approvalStatus:'1'})
      }
    },
    onLoad() {
      this.search({itemType:'1',approvalStatus:'1'})
    }
  }
</script>
